package main;

import java.io.IOException;
import java.net.ConnectException;

public class Main {
	public static void main(String[] args)
	{
		try {
			new Host(args);
		} catch (IllegalArgumentException e) {
			String[] s = {"help"};
			try {
				new Host(s);
			} catch (IllegalArgumentException e1) {
				System.out.println("ARGOMENTI DELLA RIGA NON VALIDI");
			} catch (IOException e1) {
				System.out.println("ERRORE I/O");
			}
		} catch (ConnectException e)
		{
			System.out.println("IL SERVER NON E' ATTIVO");
		} catch (IOException e) {
			System.out.println("ERRORE I/O");
		}
	}	
}
